package com.suse.ecommerce.dao;

import com.suse.ecommerce.annotation.MyBatis;
import com.suse.ecommerce.pojo.Shopping;
import com.suse.ecommerce.pojo.ShoppingExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
@MyBatis
public interface ShoppingMapper {
    int countByExample(ShoppingExample example);

    int deleteByExample(ShoppingExample example);

    int deleteByPrimaryKey(Long shoppingId);

    int insert(Shopping record);

    int insertSelective(Shopping record);

    List<Shopping> selectByExampleWithBLOBs(ShoppingExample example);

    List<Shopping> selectByExample(ShoppingExample example);

    Shopping selectByPrimaryKey(Long shoppingId);

    int updateByExampleSelective(@Param("record") Shopping record, @Param("example") ShoppingExample example);

    int updateByExampleWithBLOBs(@Param("record") Shopping record, @Param("example") ShoppingExample example);

    int updateByExample(@Param("record") Shopping record, @Param("example") ShoppingExample example);

    int updateByPrimaryKeySelective(Shopping record);

    int updateByPrimaryKeyWithBLOBs(Shopping record);

    int updateByPrimaryKey(Shopping record);

    List<Long> queryShoppingByPidAndUid(@Param("userId")Integer userId,@Param("productId")long productId);

    void updateShoppingNumAdd(long shoppingId);


    List<Shopping> getShoppings(Shopping record);

    void delShopping(Shopping record);

}